package com.java.shop.product.exception;

import lombok.Getter;

public enum ProductExceptionEnum{
    PRODUCT_EXCEPTION(20000,"产品模块错误"),
    REPEAT_EXCEPTION(20001,"数据重复"),
    BRANDORCATEGORY_NOTFOUND_EXCEPTION(20002,"分类或品牌未查询到"),
    BRAND_NOTFOUND_EXCEPTION(20003,"品牌未查询到"),
    CATELOG_NOTFOUND_EXCEPTION(20004,"分类未查询到"),
    ATTR_NOTFOUND_EXCEPTION(20005,"属性未查询到"),
    ATTRGROUP_NOTFOUND_EXCEPTION(20006,"属性分组未查询到"),
    ATTRATTRGROUPRELATION_NOTFOUND_EXCEPTION(20007,"属性与属性分组未查到");

    @Getter
    private Integer code;
    @Getter
    private String msg;

    private ProductExceptionEnum(Integer code, String msg){
        this.code = code;
        this.msg = msg;
    }
}
